

import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import "lib-flexible/flexible.js";
import './assets/pageBg.png';
import websocketService from './services/websocket';
import { createPinia } from 'pinia';

// Define feature flags
window.__VUE_PROD_DEVTOOLS__ = false;
window.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false;

// Connect to WebSocket

// Create Pinia store
const pinia = createPinia();

// Create Vue app and use the necessary plugins
createApp(App)
  .use(router)
  .use(pinia) // Use Pinia for state management
  .mount('#app');